import request from '@/utils/request'

/**
 * 注册
 * @param {*} param0 
 * @returns 
 */
export const userRegisterService = ({ username, phone, password, repassword }) => {
  return request({
    method: 'post',
    url: '/user/register',
    data: { username, phone, password, repassword },
  })
}

/**
 * 登录
 * @param {Login} data 
 * @returns 
 */
export const userLoginService = ({ phone, password }) => {
  return request({
    method: 'post',
    url: '/user/login',
    data: { phone, password }
  })
}

